<template>
  <div class="container-big profile-page wing-blank">
    <!-- <div class="alibaba-design" /> -->
    <!-- <div class="uncan-2019-text" /> -->
    <!-- <div class="uncan-right" /> -->
    <co-list v-if="power" margin>
      <co-list-item class="pointer" link to="/profile/order-list">
        <span>我的订单</span>
      </co-list-item>
      <!-- v-if="zhuansongFun()" -->
      <co-list-item class="pointer" link to="/invoiceList">
        <span>我的发票</span>
      </co-list-item>
    </co-list>
    <bottomNav></bottomNav>
  </div>
</template>
<script>
import bottomNav from "./../bottomNav";
import ddApi from "./../ddApi";
import service from "@/api/mine";
export default {
  components: {
    bottomNav
  },
  data() {
    return {
      power: false
    };
  },
  created() {
    ddApi.setRight();
    service.mobRegister({}).then(res => {
      this.power = res;
    });
  },
  methods: {
    zhuansongFun() {
      let zhuansongList = [
        "15972961091",
        "13758141708",
        "15868154582",
        "13127882837",
        "18621532154",
        "17623878198",
        "15855431282",
        "1760130268995005"
      ];
      return zhuansongList.indexOf(sessionStorage.getItem("zhuansong")) != -1
        ? true
        : false;
    }
  }
};
</script>


<style lang="less">
.profile-page {
  padding-top: 196px;
}
.pointer {
  cursor: pointer;
}
</style>
